package com.example.demo.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

@Data
@Component
public class Borrow {
    private Integer id;
    private String bookid;
    private String bookname;
    private String username;
    private Date expiredate;
    private Integer isnearlyexpire;
    private Integer owe;

    @Override
    public String toString() {
        return "Borrow{" +
                "id=" + id +
                ", bookid='" + bookid + '\'' +
                ", bookname='" + bookname + '\'' +
                ", username='" + username + '\'' +
                ", expiredate=" + expiredate +
                ", isnearlyexpire=" + isnearlyexpire +
                ", owe=" + owe +
                '}';
    }
}
